package zaphod.toy.gef.japanexample.model.command;

import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.gef.commands.Command;

import zaphod.toy.gef.japanexample.model.HelloModel;


public class ChangeConstraintCommand extends Command
{
    private HelloModel model;
    private Rectangle constraint;


    @Override
    public void execute()
    {
        model.setConstraint( constraint );
    }


    public void setConstraint( Rectangle constraint )
    {
        this.constraint = constraint;
    }


    public void setModel( Object object )
    {
        this.model = (HelloModel)object;
    }

}
